<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic Menu - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/easyui/demo.css">
<script type="text/javascript" src="/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>



</head>
<?php $test = array('abc','bbb','ccc');?>
<body>
<h2>Menu Link</h2>
<form id="form1" name="form1" method="post" action="">
<div style="margin:20px 0;"></div>
<div class="easyui-panel" style="padding:5px;">
<a href="#" class="easyui-menubutton" data-options="menu:'#toolBar'">ToolBar</a>
Link:<input type ="text" id = "link" name = "link"/>
Title:<input type ="text" id = "link_title" name = "link_title"/>
Description:<input type ="text" id = "link_Description" name = "link_Description"/>
User:<input type ="text" id = "user" name = "user"/>
</div>
<br>
<div class="easyui-panel" style="padding:5px;">
<a href="#" class="easyui-menubutton" data-options="menu:'#account'">Account</a>
<a href="#" class="easyui-menubutton" data-options="menu:'#admin'">Admin</a>
<a href="#" class="easyui-menubutton" data-options="menu:'#bonus'">Bonus</a>
<a href="#" class="easyui-menubutton" data-options="menu:'#general'">General</a>
<a href="#" class="easyui-menubutton" data-options="menu:'#repair'">Repair</a>
<a href="#" class="easyui-menubutton" data-options="menu:'#warehouse'">Warehouse</a>
</div>
<br>
<br>

<div id="toolBar" style="width:1000;">
<div id = "addlink" data-options="iconCls:'icon-add'" onclick = "submit()">Add Address</div>
<div data-options="iconCls:'icon-edit'">Edit Address</div>
<div data-options="iconCls:'icon-remove'">Delect Address</div>
<div class="menu-sep"></div>
<div>Add Toolbar...</div>
</div>

<div id="account" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='Account'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>

<div id="admin" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='Admin'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>

<div id="bonus" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='Bonus'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>

<div id="general" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='General'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>

<div id="repair" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='Repair'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>

<div id="warehouse" style="width:1000;">
<?php foreach($this->list as $k => $v){
if($v['title']=='Warehouse'){?>
<div><a href="<?php echo $v['link']?>"><?php echo $v['link'] ?></a></div>
<?php } 
}?>
</div>


</form>
</body>

</html>

<script language="javascript" type="text/javascript">
function submit(){
		document.getElementById("form1").submit();
	}

</script>
